import request from '@/utils/request'

// 查询订单任务列表
export function listOrderTask(query) {
  return request({
    url: '/order/orderTask/list',
    method: 'get',
    params: query
  })
}

// 查询订单任务详细
export function getOrderTask(id) {
  return request({
    url: '/order/orderTask/' + id,
    method: 'get'
  })
}

// 新增订单任务
export function addOrderTask(data) {
  return request({
    url: '/order/orderTask',
    method: 'post',
    data: data
  })
}

// 修改订单任务
export function updateOrderTask(data) {
  return request({
    url: '/order/orderTask',
    method: 'put',
    data: data
  })
}

// 删除订单任务
export function delOrderTask(id) {
  return request({
    url: '/order/orderTask/' + id,
    method: 'delete'
  })
}
